-- GENERATED SPELL FOR [Guardian Lasher] --


function spell0_33430(pUnit, Event) --@Displace Roots,n/a--
pUnit:FullCastSpellOnTarget(63044,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33430', 3000, 1)
end

function spell1_33430(pUnit, Event) --@Guardian Pheromones,Self--
pUnit:FullCastSpellOnTarget(63007,pUnit)
pUnit:RegisterEvent('Sorts_33430', 0, 1)
end

function spell2_33430(pUnit, Event) --@Guardian\'s Lash,n/a--
pUnit:FullCastSpellOnTarget(63047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33430', 6000, 1)
end

function spell3_33430(pUnit, Event) --@Guardian\'s Lash,n/a--
pUnit:FullCastSpellOnTarget(63550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33430', 6000, 1)
end

function Sorts_33430(pUnit, Event)
local choix_sorts_33430 = math.random(0, 3)
if choix_sorts_33430 == 0 then
pUnit:RegisterEvent('spell0_33430', 1, 1)
end
if choix_sorts_33430 == 1 then
pUnit:RegisterEvent('spell1_33430', 1, 1)
end
if choix_sorts_33430 == 2 then
pUnit:RegisterEvent('spell2_33430', 1, 1)
end
if choix_sorts_33430 == 3 then
pUnit:RegisterEvent('spell3_33430', 1, 1)
end
end

function mob33430_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33430', math.random(1500, 3000), 1)
end

function mob33430_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33430_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33430_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33430, 1, 'mob33430_Action')
RegisterUnitEvent(33430, 2, 'mob33430_Leave')
RegisterUnitEvent(33430, 3, 'mob33430_Kill')
RegisterUnitEvent(33430, 4, 'mob33430_Die')
